cmake_minimum_required(VERSION 3.18)
project(ExampleProgram)

set(CMAKE_CXX_STANDARD 11)

# add_executable(tcp-client tcp-client.cpp)
# add_executable(tcp-server tcp-server.cpp)
# add_executable(udp-client udp-client.cpp)
# add_executable(udp-server udp-server.cpp)

# add_executable(dms-client tcp-domain-client.cpp)
# add_executable(dms-server tcp-domain-server.cpp)

# add_executable(dmd-client udp-domain-client.cpp)
# add_executable(dmd-server udp-domain-server.cpp)


add_executable(multicast-client udp-client-multicast.cpp)
add_executable(multicast-server udp-server-multicast.cpp)


# Add -lpthread
# target_link_libraries(tcp-client pthread)
# target_link_libraries(tcp-server pthread)
# target_link_libraries(udp-client pthread)
# target_link_libraries(udp-server pthread)
# target_link_libraries(dms-client pthread)
# target_link_libraries(dms-server pthread)

# target_link_libraries(dmd-client pthread)
# target_link_libraries(dmd-server pthread)

target_link_libraries(multicast-client pthread)
target_link_libraries(multicast-server pthread)


# # Add -I../async-sockets
# target_include_directories(tcp-client PUBLIC ../async-sockets/include)
# target_include_directories(tcp-server PUBLIC ../async-sockets/include)
# target_include_directories(udp-client PUBLIC ../async-sockets/include)
# target_include_directories(udp-server PUBLIC ../async-sockets/include)
# target_include_directories(dms-client PUBLIC ../async-sockets/include)
# target_include_directories(dms-server PUBLIC ../async-sockets/include)

# target_include_directories(dmd-client PUBLIC ../async-sockets/include)
# target_include_directories(dmd-server PUBLIC ../async-sockets/include)

target_include_directories(multicast-client PUBLIC ../async-sockets/include)
target_include_directories(multicast-server PUBLIC ../async-sockets/include)
